//
//  HOBaseRequestEntity.h
//  WeiDu_1_0
//
//  Created by foguo-mac-1 on 01/07/16.
//  Copyright (c) 2016 WeiDu Energy Tech. All rights reserved.
//

#import "HOBaseObject.h"
#import "HODefine.h"

@class HOHttpRequest;
@interface HOBaseRequestEntity : HOBaseObject
{
    int                         requestedCode;
    NSMutableDictionary         *params;
}
@property(nonatomic, retain)NSString                    *action;
@property(nonatomic, readonly)NSMutableDictionary       *params;
@property(nonatomic, assign)AM_REQUEST_PRIORITY         priority;
@property(nonatomic, assign)HO_REQUEST_STATUS           status;
@property(nonatomic, assign)int                         progress; //1~100;
@property(nonatomic, assign)int                         requestTimes;
@property(nonatomic, assign)int                         sequence;
@property(nonatomic, readonly)NSMutableArray            *moduleLiseners;

@property(nonatomic, retain)HOHttpRequest            *httpRequest;
- (NSString *)getFullURL;
- (NSString *)getMethod;

- (void)addParam:(id)anObject forKey:(id<NSCopying>)aKey;
- (id)paramForKey:(id<NSCopying>)aKey;

- (void)addModule:(HO_MODULE_TYPE)type;

- (void)cancelRequest;
@end
